// pages/douban-detail/douban-detail.js
Page({
  data: {
    res:""
  },
  onLoad: function (options) {
     var url = "http://localhost:1000/";
     wx.request({
       url,
       header: {'content-type':'application/json'},
       method: 'GET',
       dataType: 'json',
       responseType: 'text',
       success: (result)=>{
           console.log(result.data)
           this.setData({
             res:result.data
           })
       },
     });
  },

})